# 案例⼀ ⼩明爱跑步

class Penson:
    def __init__(self, name, weight):
        self.name = name
        self.weight = weight;

    def __str__(self):
        return f"{self.name}目前的体重为{self.weight}"

    def run(self):
        self.weight -= 0.5
        return f"{self.name}目前的体重减少了0.5kg"

    def eat(self):
        self.weight += 1
        return f"{self.name}大餐一顿,增加1kg"

p = Penson("小明",75)
print(p.run())
print(p)
print(p.eat())
print(p)
